#pragma once
#ifndef IO_TEXTREADER_H
#define IO_TEXTREADER_H
//------------------------------------------------------------------------------
/**
    @class Core::TextReader
    
    A friendly interface for reading text data from a stream.
    
    (C) 2006 Radon Labs GmbH
*/
#include "streamreader.h"

//------------------------------------------------------------------------------
namespace GBase
{
	class TextReader : public StreamReader
	{
	public:
		TextReader();
		/// destructor
		virtual ~TextReader();
		/// read a single character from the stream
		unsigned char ReadChar();
		bool ReadLine(char* buf, int len);
		/// read until next newline
		char* ReadLine1024();
		char* ReadLine64k();
		///// read until next newline
		//Util::String ReadLine();
		///// read entire stream into a string object
		//Util::String ReadAll();
		///// read entire stream as lines into string array
		//Util::Array<Util::String> ReadAllLines();
	};

};
//------------------------------------------------------------------------------
#endif